@echo off
set x=%date:~2,2%
set y=%date:~5,2%%date:~8,2%
set z=%time:~,2%
set z=%z: =%%time:~3,2%
set dist=dist\%x%.%y%.%z%
set html=./html
echo %dist%
::rmdir /s/q build
mkdir %dist%
mkdir %dist%\logs
go build -o %dist%\SampleHttpServer.exe ./main.go
robocopy %html% %dist%/html /s
copy install.bat %dist%
copy uninstall.bat %dist%
copy n64.exe %dist%
